
package uestc.bitman.edxapp.chapter;

import java.util.List;

public class CourseChapter{

    public String chapterDisplayName;

    public List<Section> sections;

    public CourseChapter(String displayName, List<Section> sections) {
        this.chapterDisplayName = displayName;
        this.sections = sections;
    }

    public CourseChapter() {
    }

    public String getChapterDisplayName() {
        return chapterDisplayName;
    }

    public void setChapterDisplayName(String chapterDisplayName) {
        this.chapterDisplayName = chapterDisplayName;
    }

    public List<Section> getSections() {
        return sections;
    }

    public void setSections(List<Section> sections) {
        this.sections = sections;
    }

    public Section getSection(int position) {
        return sections.get(position);
    }

    public class Section {

        public String url;

        public String sectionDisplayName;

        public Section(String url, String displayName) {
            this.url = url;
            this.sectionDisplayName = displayName;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getSectioDisplayName() {
            return sectionDisplayName;
        }

        public void setSectioDisplayName(String sectioDisplayName) {
            this.sectionDisplayName = sectioDisplayName;
        }
    }
}
